package net.sk.china.platform.service.user;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import net.sk.china.platform.model.user.UserBill;
import net.sk.china.platform.request.user.FundsMonitorRequest;
import net.sk.china.platform.request.user.FundsMonitorSearchRequest;
import net.sk.china.platform.response.user.MonitorResponse;
import net.sk.china.common.request.PageParamRequest;

import java.math.BigDecimal;
import java.util.List;

/**
 * UserBillService 接口 用户余额变动
 * +----------------------------------------------------------------------
 * // | Talk To [ 聊来改善地区金融服务环境，助力企业发展 ]
 * // +----------------------------------------------------------------------
 * // | Copyright (c) 2018-2024 聊来 All rights reserved.
 * // +----------------------------------------------------------------------
 * // | Licensed ( <a href="http://www.apache.org/licenses/LICENSE-2.0">apache</a> )
 * // +----------------------------------------------------------------------
 * // | @Author: 聊来 <18970881148@qq.com>
 * // +----------------------------------------------------------------------
 * // | DateTime: 2024/6/3 10:25
 * // +----------------------------------------------------------------------
 */
public interface UserBillService extends IService<UserBill> {

    /**
     * 余额变动列表
     *
     * @param request          请求参数
     * @param pageParamRequest 分页类参数
     * @return List<UserBill>
     */
    List<UserBill> getList(FundsMonitorSearchRequest request, PageParamRequest pageParamRequest);

    /**
     * 资金监控
     *
     * @param request          查询参数
     * @param pageParamRequest 分页参数
     * @return PageInfo<MonitorResponse>
     */
    PageInfo<MonitorResponse> fundMonitoring(FundsMonitorRequest request, PageParamRequest pageParamRequest);

    /**
     * 获取用户平台赠送的金额
     * @param uid 用户ID
     * @return BigDecimal
     */
    BigDecimal getSumPlatformGive(Integer uid);
}
